package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SinaMapper extends BaseMapper<Article> {

    @Select("select * from ap_article where title like #{title}")
    List<Article> selectByname(@Param("title") String title);
}
